set global.changer_count = 0
echo "Changing counter set to 0"

M591 D0 S1								; enable primary filament sensor
if {global.printheads} = 2
	M591 D1 S1							; enable secondary filament sensor
G4 P100									; wait for 100ms
M300 S1111 P666 						; beep 
echo "Clog Detecting Enabled"

if {global.filamentswitch} = 0
	set global.filamentswitch = 1
	echo "Enabled: Continuous Filament Change"
elif {global.filamentswitch} = 1
	set global.filamentswitch = 0
	echo "Disabled: Continuous Filament Change"

